package com.itheima.chapter10.blockQueue;

import java.util.concurrent.ArrayBlockingQueue;
//阻塞对列
public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> abq =new ArrayBlockingQueue<>(1);
        abq.put("汉堡");
        abq.take();
       // abq.take();
        System.out.println("进程结束");
    }
}
